#include<stdio.h>
#include<math.h>
int main()
{
    int x,a,b,c,y;
    printf("Input x:\n");
    scanf("%d",&x);
    x=fabs(x);
    a=x/100;
    b=(x-a*100)/10;
    c=x-100*a-10*b;
    printf("y=%d\n",y=c*100+b*10+a);
    return 0;
}
